import {
  init,
  classModule,
  propsModule,
  styleModule,
  eventListenersModule,
  h,
} from "snabbdom";

const patch = init([classModule,
  propsModule,
  styleModule,
  eventListenersModule])

const myVnode1 = h('a',{
  props:{
    href:"http://www.atguigu.com"
  }
},"尚硅谷")

const myVnode2 = h("div","hello world")

const myVnode3 = h("ul",{},[
  h("li",{},"time1"),
  h("li",{},"time2"),
  h("li",{},"time3"),
  h("li",{},"time4"),
  h("li",{},"time5"),
  h("li",{},"time6")
])

const container = document.getElementById("container")
patch(container,myVnode3)